package com.ten.order.service.impl;

import com.ten.common.core.entity.TbMember;
import com.ten.common.core.vo.Result;
import com.ten.order.dao.ByUserIdDao;
import com.ten.order.service.ByUserIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：王薪伟
 * @date ：Created in 2022/12/8 22:17
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class ByUserIdServiceImpl implements ByUserIdService {

    @Autowired
    private ByUserIdDao userIdDao;

    //根据用户id查询用户信息
    @Override
    public Result<TbMember> findMemberById(String id) {
        TbMember tbMember = userIdDao.selectById(id);
        return new Result<>(2000, "查询成功", tbMember);
    }
}
